home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / setreuid.man < prev    next >
Encoding:
Text File  |  1989-06-06  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SETREUID              C Library Procedures               SETREUID
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      setreuid - set real and effective user ID's
  10.  
  11. SSYYNNOOPPSSIISS
  12.      sseettrreeuuiidd((rruuiidd,, eeuuiidd))
  13.      iinntt rruuiidd,, eeuuiidd;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      The real and effective user ID's of the current process are
  17.      set according to the arguments.  If _r_u_i_d or _e_u_i_d is -1, the
  18.      current uid is filled in by the system.  Unprivileged users
  19.      may change the real user ID to the effective user ID and
  20.      vice-versa; only the super-user may make other changes.
  21.  
  22. RREETTUURRNN VVAALLUUEE
  23.      Upon successful completion, a value of 0 is returned.  Oth-
  24.      erwise, a value of -1 is returned and _e_r_r_n_o is set to indi-
  25.      cate the error.
  26.  
  27. EERRRROORRSS
  28.      [EPERM]        The current process is not the super-user and
  29.                     a change other than changing the effective
  30.                     user-id to the real user-id was specified.
  31.  
  32. SSEEEE AALLSSOO
  33.      getuid(2), setregid(2), setuid(3)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 9, 1985                          1
  64.  
  65.  
  66.  
  67.